
module.exports = async function pageRes(ctx, next) {
    ctx.pageRes = function(config) {
        ctx.body = {
            code: '200',
            message: '获取成功！',
            messageBody: config,
        }
    };
    await next();
}